import request from '@/utils/request'
// GET /api/bases/course_charge
// 获取课程编导

// export const baseUrl2 = "http://192.168.60.85:8081" //api2
export const baseUrl2 = 'http://123.57.59.222:8081' // api2

// GET /api/bases/dict/order_type
// 获取订单类型字典数据

// GET /api/bases/dict/product_line
// 获取产品线字典数据

// GET /api/bases/dict/course_type
// 获取课程类型字典数据
export function getCourseCharge() {
  return request({
    url: '/api/bases/course_charge',
    method: 'get'

  })
}
// GET /api/bases/dict/contract_type
// 获取合同类型字典数据
export function getContractType() {
  return request({
    url: '/api/bases/dict/contract_type',
    method: 'get'

  })
}
export function getOrderType() {
  return request({
    url: '/api/bases/odict/rder_type',
    method: 'get'

  })
}
export function getProductLine() {
  return request({
    url: 'api/bases/dict/product_line',
    method: 'get'

  })
}

// GET /api/bases/dict/product_type
// 获取产品类型字典数据
export function getProductType() {
  return request({
    url: '/api/bases/dict/product_type',
    method: 'get'

  })
}
export function getSupplierContent() {
  return request({
    url: '/api/bases/dict/supplier_service_content',
    method: 'get'
  })
}

/** 学科门类 */
export function getSubjectCate() {
  return request({
    url: '/api/bases/dict/subject_category',
    method: 'get'
  })
}
/** 拍摄形式 */
export function getShootMode() {
  return request({
    url: '/api/bases/dict/shoot_mode',
    method: 'get'
  })
}
// GET /api/bases/dict/course_exchange 课程前期沟通进度
export function getCourseExchange() {
  return request({
    url: '/api/bases/dict/course_exchange',
    method: 'get'
  })
}
// GET /api/bases/dict/course_type 课程类别
export function getCourseType() {
  return request({
    url: '/api/bases/dict/course_type',
    method: 'get'
  })
}

// /api/bases/dict/course_schedule 课程进度管理
export function getCourseSchedule() {
  return request({
    url: '/api/bases/dict/course_schedule',
    method: 'get'
  })
}
// GET /api/bases/dict/course_online_state
// 课程上线状态
export function getCourseLineState() {
  return request({
    url: '/api/bases/dict/course_online_state',
    method: 'get'
  })
}
// /api/bases/supplier_type 供应商类型
export function getSupplierType() {
  return request({
    url: '/api/bases/supplier_type',
    method: 'get'
  })
}

// /api/bases/suppliers/{supplierTypeId} 获取供应商
export function getSuppliersName(supplierTypeId) {
  return request({
    url: `/api/bases/suppliers/${supplierTypeId}`,
    method: 'get'
  })
}

// 获取供应商评级
export function getRate(id) {
  return request({
    url: `/api/bases/suppliers/${id}`,
    method: 'get'
  })
}

export function getRateBySupplierId(id) {
  return request({
    url: `/api/supplierEvaluates/supplierEvaluatesDetails/${id}`,
    method: 'get'
  })
}

// /api/bases/dict/invoice_type
export function getInvoice() {
  return request({
    url: '/api/bases/dict/invoice_type',
    method: 'get'
  })
}
// /api/bases/suppliers/service_content/{supplierId}  根据供应商获取服务
export function getServiceById(id) {
  return request({
    url: `/api/bases/suppliers/service_content/${id}`,
    method: 'get'
  })
}
// GET /api/bases/dict/payment_state  支付状态
export function getPaymentState() {
  return request({
    url: '/api/bases/dict/payment_state',
    method: 'get'
  })
}
